import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:layout-dashboard',
      order: -1,
      title: $t('page.system.title'),
    },
    name: 'System',
    path: '/system',
    children: [
      {
        name: 'Platform',
        path: '/system',
        component: () => import('#/views/system/system/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: $t('page.system.system'),
        },
      },
      {
        name: 'Company',
        path: '/company',
        component: () => import('#/views/system/company/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: $t('page.system.company'),
        },
      },
      {
        name: 'Role',
        path: '/role',
        component: () => import('#/views/system/role/index.vue'),
        meta: {
          icon: 'lucide:users',
          title: $t('page.system.role'),
        },
      },
      {
        name: 'User',
        path: '/user',
        component: () => import('#/views/system/user/index.vue'),
        meta: {
          icon: 'lucide:user',
          title: $t('page.system.user'),
        },
      },
    ],
  },
];

export default routes;
